#ifndef _NEWBC_
#define _NEWBC_
#include "HardwareInfo.c"
#include <GetSysTime.h>
#include "task1.c"

void newbc(int isRB, int jiaohuan)
{
    // extern global var
    extern long MorseT;
    extern int pre;
    extern unsigned long now;
    extern long istask1break;
    extern long g_count;

    long R = 0;
    long middle = 0;
    long G = 0;
    long B = 0;
    long sd = 0;
    long gs = 0;
    long tmp = 0;
    long down = 0;
    long downtmp = 0;
    long flaggs2 = 0;
    long var1 = 0;
    MorseT=isRB;
    pre=jiaohuan;
    now = GetSysTime();
    g_count=0;
    static int flag=0;istask1break=0;
    if(flag==0 ) OS_TaskCreate(1); flag=1; return;
    task1();
}
#endif

